import request from '@/utils/request.js'

const state = {
	goodArr: [], 
};
const mutations = {
	GETCATEGORY(state, goodArr) {
		state.goodArr = goodArr;
	}
};
const actions = {
	async getCategory({
		commit,
		state,
		dispatch,
		getters
	}, payload) {
		let result = await request("/getCateGoryData");
		commit('GETCATEGORY', result);
	}
};
const getters = {};
export default {
	state,
	mutations,
	actions,
	getters
}
